package com.freecloud.javabasics.design.chain;

/**
 * @Author: maomao
 * @Date: 2020-01-21 16:11
 */
public class ChainTest {

    public static void main(String[] args) {

        RequestHandler handler = new CheckRequestHandler(new SaveRequestHandler(null));

        Request request = new Request("张三");
        handler.handleRequest(request);
    }
}
